<?php
namespace App\Http\Controllers\Api;
use App\Http\Requests\Api\GoodsSeckillRequest;
use Illuminate\Support\Facades\DB;
use App\Services\GoodsSeckillService;
class GoodsSeckillController extends Controller
{
    //秒杀处理
    public function store(GoodsSeckillRequest $request,GoodsSeckillService $goodsSeckillService){
//        dd($request->user());
        $goodsSeckillService->goodsSeckill($request->user(),$request->goods_id);
        return response("秒杀成功",200);
    }
}
